package response

/**
定义返回值常量，便于前端处理
 */

var Success = Response{"0000", "SUCCESS"}

var LoginTimeout = Response{"1000", "LOGIN_TIMEOUT"}

var UserNotExist = Response{"1001", "USER_NOT_EXIST"}

var WrongPassword = Response{"1002", "WRONG_PASSWORD"}

var UserAlreadyExist = Response{"1003", "USER_ALREADY_EXIST"}

var InvalidPhone = Response{"1004", "INVALID_PHONE"}

var PhoneHasBeenUsed = Response{"1005", "PHONE_HAS_BEEN_USED"}

var CaptchaExpired = Response{"1006", "CAPTCHA_EXPIRED"}

var ReAcquireCaptcha = Response{"1007", "RE_ACQUIRE_CAPTCHA"}

var WrongCaptcha = Response{"1008", "WRONG_CAPTCHA"}

var CreateFailed = Response{"1009", "CREATE_FAILED"}

var InvalidParameter = Response{"3000", "INVALID_PARAMETER"}

var ServerError = Response{"5000", "SERVER_ERROR"}